/*****************************************************************************
 * Copyright (C) 2008 EnterpriseDB Corporation.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 as published by
 * the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, see http://www.gnu.org/licenses or write to the
 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301 USA.
 *
 * You can contact EnterpriseDB, Inc. via its website at
 * http://www.enterprisedb.com
 *
 ****************************************************************************/
package com.edb.gridsql.parser.handler;

import java.util.Vector;

/**
 * This class acts as an helper class and is utilized by QueryTreeHandler class to 
 * transfer information about a query condition such that the columns are grouped in
 * 2 categories
 * 1. Columns in the query condition which belong to this particular tree 
 * 2. Columns in query condition which belong to some other tree
 */
public class QCHelperColumnList {
    /**
     * It represents the columns in the query condition which belong to the specific
     * tree.
     */ 
    private Vector columnExprListThisTree;

    /**
     * It represents the columns in the query condition which belong to the parent
     * tree.
     */ 
    private Vector columnExprListParentTree;

    /**
     * Class constructor.
     * @param columnExprListThisTree Represents the columns in the query condition which belong to the 
     * specific tree.
     * @param columnExprListParentTree Represents the columns in the query condition which belong to the 
     * parent tree.
     */
    public QCHelperColumnList(Vector columnExprListThisTree,
            Vector columnExprListParentTree) {
        this.columnExprListParentTree = columnExprListParentTree;
        this.columnExprListThisTree = columnExprListThisTree;
    }

    public Vector getColumnExprListThisTree() {
        return columnExprListThisTree;
    }

    public Vector getColumnExprListParentTree() {
        return columnExprListParentTree;
    }
}
